var AdCode_arr = new Array();

AdCode_arr[0] = '{tmp:looplist count="10" selected="commend"}<li><a href="{tmp:item name="create_path"}{tmp:item name="pagename"}.html" target="_blank">{tmp:item name="title"}</a></li>{/tmp:looplist}';
AdCode_arr[1] = '{tmp:looplist count="10" selected="commend"}<li><a href="{tmp:item name="create_path"}{tmp:item name="pagename"}.html" target="_blank">{tmp:item name="title"}</a></li>{/tmp:looplist}';


function LoadAd() {
    if (arguments.length > 0) {
        for (var i = 0; i < arguments.length; i++) {
            var adobj = document.getElementById(arguments[i]);
            adobj.innerHTML = AdCode_arr[i];
        }
    }
}
